{% extends "pos/base.html" %} {% load static %} {% block title %}Sale Approval Validator{% endblock %} {% block heading %}Sale Approval Validator{% endblock %} {% block stylesheets %} {% endblock %} {% block content %}
Staging dry run ya live approved sale validation check karein.
| Zero Stock Allow | {{ result.settings.zero_stock_allow }} | Check Batch | {{ result.settings.check_batch }} |
|---|---|---|---|
| Expiry Warn Days | {{ result.settings.expiry_warn_days }} | Partial Sale On Stock Short | {{ result.settings.partial_sale_on_stock_short }} |
| Product | Requested | Approved | Short | Status | Issues | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{ line.product_name|default:"Product" }} Code: {{ line.product_code }} Staging Line ID: {{ line.staging_line_id }} |
Qty: {{ line.requested_qty|floatformat:2 }} Bonus: {{ line.requested_bonus|floatformat:2 }} |
Qty: {{ line.approved_qty|floatformat:2 }} Bonus: {{ line.approved_bonus|floatformat:2 }} |
Qty: {{ line.short_qty|floatformat:2 }} Bonus: {{ line.short_bonus|floatformat:2 }} |
{% if line.skip %} Skipped {% elif line.is_partial %} Partial {% else %} Full {% endif %} |
{% for issue in line.issues %}
{{ issue.code }}
{% empty %}
-
{% endfor %}
{{ issue.message }} |
||||||||||||||||||||||||
Expected Allocations / Batch Layers
|
|||||||||||||||||||||||||||||
| No dry run lines found. | |||||||||||||||||||||||||||||
| Sale Lines | {{ result.summary.sale_lines }} | Stock History Rows | {{ result.summary.stock_history_rows }} | Issues | {{ result.summary.issues_count }} |
|---|
| Sale Line | Product | Line UID | Sale Qty/Bonus | History Qty/Bonus | Sale Variant | History Variant | Status | Issues |
|---|---|---|---|---|---|---|---|---|
| #{{ line.sale_line_id }} |
Product Code: {{ line.product_code }} History Item: {{ line.history_item_id }} |
{{ line.line_uid }} |
Qty: {{ line.sale_qty|floatformat:2 }} Bonus: {{ line.sale_bonus|floatformat:2 }} |
Qty: {{ line.history_qty_part|floatformat:2 }} Bonus: {{ line.history_bonus|floatformat:2 }} |
{{ line.sale_variant_id|default:"NULL" }} | {{ line.history_variant_id|default:"NULL" }} | {% if line.ok %} OK {% else %} Issue {% endif %} |
{% for issue in line.issues %}
{{ issue.code }}
{% empty %}
-
{% endfor %}
{{ issue.message }} |
| No live sale lines found. | ||||||||
| Stock History ID | Line UID | Item ID | Variant ID | Changed Stock | Bonus Stock | Message |
|---|---|---|---|---|---|---|
| #{{ h.stock_history_id }} | {{ h.line_uid }} | {{ h.item_id }} | {{ h.variant_id|default:"NULL" }} | {{ h.changed_stock }} | {{ h.bonus_stock }} | {{ h.message }} |
| No orphan stock history row. | ||||||
| Code | Line UID | Sale Line | Stock History | Message |
|---|---|---|---|---|
| {{ issue.code }} | {{ issue.line_uid|default:"-" }} | {{ issue.sale_line_id|default:"-" }} | {{ issue.stock_history_id|default:"-" }} | {{ issue.message }} |
| No issue found. | ||||